package com.zzgele.qmzb.api.service;

import com.zzgele.qmzb.api.core.Service;
import com.zzgele.qmzb.api.model.BonusPackage;


/**
 * Created by Martin on 2017/07/20.
 */
public interface BonusPackageService extends Service<BonusPackage> {


    /**
     * @param id
     * @return 查询无结果返回null
     */
    public BonusPackage getBonusPackageById(Long id);



    /**
     *
     * @param amount
     * @param expireTime 过期时间,这个过期时间指红包最晚可领取时间，不是消费时间
     * @return
     */
    public BonusPackage createTotalPriceBonusPackage(Integer amount, Integer price, Integer expireTime, Long uid);

}
